package my.mark.mybaibaoxiang.jvm;

/**
 * @author twotiger-wxm.
 * @date 2020-4-23.
 * // JVM设置  -Xss128k(默认1M)
 */
public class StackOverflowTest {

    static int count = 0;

    static void redo() {
        count++;
        redo();
    }

    public static void main(String[] args) {
        try {
            redo();
        } catch (Throwable t) {
            t.printStackTrace();
            System.out.println(count);
        }
    }
}
